package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * 返回对象
 */
@ApiModel(description = "返回对象")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ServiceRecord   {
  @JsonProperty("personnel")
  private String personnel = null;

  @JsonProperty("category")
  private String category = null;

  @JsonProperty("theme")
  private String theme = null;

  @JsonProperty("date")
  private String date = null;

  @JsonProperty("content")
  private String content = null;

  public ServiceRecord personnel(String personnel) {
    this.personnel = personnel;
    return this;
  }

  /**
   * 人员
   * @return personnel
  **/
  @ApiModelProperty(example = "张三", value = "人员")


  public String getPersonnel() {
    return personnel;
  }

  public void setPersonnel(String personnel) {
    this.personnel = personnel;
  }

  public ServiceRecord category(String category) {
    this.category = category;
    return this;
  }

  /**
   * 类别
   * @return category
  **/
  @ApiModelProperty(example = "解答问题", value = "类别")


  public String getCategory() {
    return category;
  }

  public void setCategory(String category) {
    this.category = category;
  }

  public ServiceRecord theme(String theme) {
    this.theme = theme;
    return this;
  }

  /**
   * 主题
   * @return theme
  **/
  @ApiModelProperty(example = "新股开盘", value = "主题")


  public String getTheme() {
    return theme;
  }

  public void setTheme(String theme) {
    this.theme = theme;
  }

  public ServiceRecord date(String date) {
    this.date = date;
    return this;
  }

  /**
   * 服务时间
   * @return date
  **/
  @ApiModelProperty(example = "2019-06-06", value = "服务时间")


  public String getDate() {
    return date;
  }

  public void setDate(String date) {
    this.date = date;
  }

  public ServiceRecord content(String content) {
    this.content = content;
    return this;
  }

  /**
   * 内容
   * @return content
  **/
  @ApiModelProperty(example = "XXXXXX", value = "内容")


  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ServiceRecord serviceRecord = (ServiceRecord) o;
    return Objects.equals(this.personnel, serviceRecord.personnel) &&
        Objects.equals(this.category, serviceRecord.category) &&
        Objects.equals(this.theme, serviceRecord.theme) &&
        Objects.equals(this.date, serviceRecord.date) &&
        Objects.equals(this.content, serviceRecord.content);
  }

  @Override
  public int hashCode() {
    return Objects.hash(personnel, category, theme, date, content);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ServiceRecord {\n");
    
    sb.append("    personnel: ").append(toIndentedString(personnel)).append("\n");
    sb.append("    category: ").append(toIndentedString(category)).append("\n");
    sb.append("    theme: ").append(toIndentedString(theme)).append("\n");
    sb.append("    date: ").append(toIndentedString(date)).append("\n");
    sb.append("    content: ").append(toIndentedString(content)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

